#include "ZigbusHeatingFunction.h"

ZigbusHeatingFunction::ZigbusHeatingFunction()
    : ZigbusItem(-1, HEATING_FUNCTION_SIZE)
{
}

ZigbusHeatingFunction::ZigbusHeatingFunction(int value)
    : ZigbusItem(value, HEATING_FUNCTION_SIZE)
{
}

ZigbusHeatingFunction::ZigbusHeatingFunction(const ZigbusHeatingFunction &other)
    : ZigbusItem(other)
{
}

QString ZigbusHeatingFunction::text() const
{
    switch(getValue()) {
    case HEATING_FUNC_HG: return "hors_gel";
    case HEATING_FUNC_ECO: return "eco";
    case HEATING_FUNC_STOP: return "stop";
    case HEATING_FUNC_CONFORT: return "confort";
    case HEATING_FUNC_CONFORT1: return "confort1";
    case HEATING_FUNC_CONFORT2: return "confort2";
    default: return "undefined";
    }
}
